import Http from '@/utils/httpUtil'
const generateId = () => (Math.floor(Math.random() * 10e15)).toString(32)

// 获取策略类型列表
export const getDictList = param => Http.get('ucenter/dict/list', param)

// 策略新增
export const addDict = param => Http.post(`${'ucenter/dict/add'}?uuId=${generateId()}`, param)

// 策略更新
export const updateDict = param => Http.post('ucenter/dict/edit', param)

// 删除策略
export const deleteDict = param => Http.post('ucenter/dict/delete', param)

// 获取所有策略
export const getAllDictList = param => Http.get('ucenter/dict/all', param)
